package com.palnar.ilecker.model;

import java.io.Serializable;

import org.ksoap2.serialization.SoapObject;

public class Language implements Serializable
{

	public  Language()
	{	
	}
	
	private Integer clientId;
	private Integer serverId;
	private String name;
	private String shortName;
	private Integer hotelId;
	
	public Integer getClientId()
	{
		return this.clientId;
	}
	
	public Integer getServerId()
	{
		return this.serverId;
	}
	
	public String getName()
	{
		return this.name;
	}
	
	public String getShortName()
	{
		return this.shortName;
	}

	 public Integer getHotelId()
	 {
		 return this.hotelId;
	 }
	 
	public void setClientId(Integer clientId)
	{
		this.clientId= clientId;
	}
	
	public void setServerId(Integer serverId)
	{
		this.serverId= serverId;
	}
	
	public void setName(String name)
	{
		this.name= name;
	}
	
	public void setShortName(String shortName)
	{
		this.shortName = shortName;
	}

	 public void setHotelId(Integer hotelId)
	 {
		 this.hotelId = hotelId;
	 }
	 
	 public static Language LanguageBuilder(SoapObject soapObject, Integer hotelId)
	 {
		 Language language = new Language();
		 language.serverId = Integer.parseInt(soapObject.getProperty("LanguageId").toString());
		 language.name = soapObject.getProperty("LanguageName").toString();
		 language.shortName = soapObject.getProperty("LanguageShortName").toString();
		 language.hotelId= hotelId;
		 return language;
	 }
}
